package com.daqian.chance.elasticsearch.web.modules.elasticsearch.po.es;

import com.daqian.chance.elastic.search.po.DocumentEntity;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Document 如果没有index则会新增
 * @Author: daqian
 * @Date: 2019/12/4 11:52
 */
@Data
//@Document(indexName = "goods_info", shards = 1, replicas = 0)
public class GoodsDoc extends DocumentEntity implements Serializable {

    private static final long serialVersionUID = -6168092263423172331L;

    //    @Field(analyzer = ESAnalysisPluginConstant.IK_SMART, type = FieldType.Long)
    private Long id;

    //    @Field(analyzer = ESAnalysisPluginConstant.IK_SMART, type = FieldType.Text)
    private String name;

    //    @Field(analyzer = ESAnalysisPluginConstant.IK_SMART, type = FieldType.Keyword)
    private String tag;

    //    @Field(analyzer = ESAnalysisPluginConstant.IK_SMART, type = FieldType.Integer)
    private Integer saleCount;

    //    @Field(analyzer = ESAnalysisPluginConstant.IK_SMART, type = FieldType.Long)
    private BigDecimal price;

}